package entity.connector;

import java.sql.*;

/**
 *
 * @author 52571783
 */
public class ConnectionProvider {

    private static Connection con = null;

    static {
        try {
            Class.forName("com.microsoft.sqlserver.jdbc.SQLServerDriver");
            con = DriverManager.getConnection(
                    "jdbc:sqlserver://w2ksa.cs.cityu.edu.hk:1433;databaseName = aiad012_db", "aiad012", "aiad012");
        } catch (Exception e) {
        }
    }

    public static Connection getCon() {
        return con;
    }
}